import java.io.*
import java.net.Socket
import java.net.UnknownHostException


fun main() {
    val client = Socket("127.0.0.1", 9099)
    val output = PrintWriter(client.getOutputStream(), true)
    val input = BufferedReader(InputStreamReader(client.inputStream))

    println("Client sending [Hello]")
    output.println("Hello")
    println("Client receiving [${input.readLine()}]")
    client.close()
}